﻿namespace UnityEditor
{
    using System;
    using System.Runtime.CompilerServices;
    using UnityEngine;

    public sealed class GameObjectUtility
    {
        [MethodImpl(MethodImplOptions.InternalCall), WrapperlessIcall]
        public static extern bool AreStaticEditorFlagsSet(GameObject go, StaticEditorFlags flags);
        [MethodImpl(MethodImplOptions.InternalCall), WrapperlessIcall]
        public static extern int GetNavMeshLayer(GameObject go);
        [MethodImpl(MethodImplOptions.InternalCall), WrapperlessIcall]
        public static extern int GetNavMeshLayerFromName(string name);
        [MethodImpl(MethodImplOptions.InternalCall), WrapperlessIcall]
        public static extern string[] GetNavMeshLayerNames();
        [MethodImpl(MethodImplOptions.InternalCall), WrapperlessIcall]
        public static extern StaticEditorFlags GetStaticEditorFlags(GameObject go);
        [MethodImpl(MethodImplOptions.InternalCall), WrapperlessIcall]
        public static extern void SetNavMeshLayer(GameObject go, int layer);
        [MethodImpl(MethodImplOptions.InternalCall), WrapperlessIcall]
        public static extern void SetStaticEditorFlags(GameObject go, StaticEditorFlags flags);
    }
}

